import React, { Component } from 'react';
import { ContainerNav } from './style';

export default class TopNavBar extends Component {
  render() {
    return (
      <ContainerNav>
        <div onClick={()=>this.props.history.goBack()}>《</div>
        <div>{this.props.children}</div>
        <div onClick={()=>this.props.history.go(1)}></div>
      </ContainerNav>
    )
  }
}
